﻿using CoreLibrary.Repo;
using IBBI.DataBase.Obj;
using IBBI.DataBase.Persistent;

namespace IBBI.DataBase {

    public interface IUserService : IRepository<User> {

        AuthenticateResponse Authenticate(AuthenticateRequest request);

        void CreateUserAccount(CreateUserRequest createUserRequest);
        void UpdateUserAccount(UpdateUserRequest updateUserRequest);

        User GetUserById(int accountId);
        User GetUserByEmail(string email);
    }

}